<?php if($member->isLogin()):?>
<div class="clearfix member">
	<div class="right avatar">
		<a href="/member/"><img src="<?=$member->avatar!=''?$member->avatar:"/data/attachment/users/default.jpg"?>" width="80" height="80" alt="<?=$member->mname?>" /></a>
	</div>
	<div class="left">
		<div class="ulinks"><a class="first" href="<?=site_url('member/profile')?>">修改资料</a><a href="<?=site_url('member/avatar')?>" <?php if(isset($subtpl) && $subtpl=='avatar') echo 'class="actived"';?>>换头像</a><a href="<?=site_url('auth/logout')?>">退出</a></div>
		<div class="uname"><a href="<?=site_url('member')?>"><?=$member->mname?></a></div>
		<div class="newbox"><!--<a href="<?=site_url('member/message')?>" class="left message">--></a><a href="<?=site_url('member/publish')?>" class="left ani pubworks">发布作品</a></div>
	</div>
</div>
<?php else:?>

<?php endif;?>